<?php
$objectfile='~cache.php';

$date=date('Y-m-d');
$authorinfo=<<<MYEND
<?php
/**
 * File		: $objectfile
 * Project	: Protected Agriculture 
 * Author 	: Norma1
 * E-mail 	: JYDSliu@Gmail.com
 * Date   	: $date
 * Blog   	: blog.jyds.org
 */

MYEND;

$scr='';

$scr.=substr(php_strip_whitespace('sql.php'),7);

$scr.=substr(php_strip_whitespace('funs.php'),7);

$scr.=substr(php_strip_whitespace('ui.php'),7);

//$scr.=substr(php_strip_whitespace('conf.php'),7);

$scr=$authorinfo.$scr;
$fp=fopen($objectfile,'w');
fwrite($fp,$scr);
unset($scr);
fclose($fp);

echo "<i>~cache.php</i> has been created ";

echo '<p><a href="'.$_SERVER['HTTP_REFERER'].'">点击返回</a></p>';
